x86emul: make _PRE_EFLAGS() tolerate first argument being 32-bit
authorJan Beulich <jbeulich@suse.com>
Wed, 4 Jan 2017 13:28:02 +0000 (14:28 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 4 Jan 2017 13:28:02 +0000 (14:28 +0100)
commite510059a8bfc564407ed044639e607c8f5ab0d6f
treed01f22c44509e597e2ca3791ecc0934e1b123a56
parent06a3b8cd7ad2586458555cbbbc4d36f17db2dbbc
x86emul: make _PRE_EFLAGS() tolerate first argument being 32-bit

While this may appear to introduce a truncation issue, the high 32 bits
get zapped already anyway (early in _PRE_EFLAGS() as well as in
_POST_EFLAGS()). Once a subsequent patch switches to use proper 32-bit
EFLAGS operands, we'll in fact end up with more correct code, as that
zeroing of the upper halves will then go away.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c